package com.itlong.cloud.sdk.service;

import com.itlong.cloud.POJO.VO.sdk.SDKJDAttriButeVO;

import java.util.Map;

/**
 * <desc>
 *      京东sdk业务处理接口
 * </desc>
 *
 * @createDate 2020/08/11
 */
public interface ISDKJdService {
    /**
     * <desc>
     *      绑定京东设备id
     * </desc>
     *
     * @param deviceId
     * @param deviceUnique
     * @return
     * @author Jiaqi.X
     * @createDate 2020/08/11
     */
    Integer bindDeviceId(String deviceId,String deviceUnique,Integer type);

    /**
     * <desc>
     *      检测设备id是否已经被绑定
     * </desc>
     *
     * @param deviceId
     * @param deviceUnique
     * @return
     * @author Jiaqi.X
     * @createDate 2020/08/11
     */
    Integer checkBindDeviceId(String deviceId,String deviceUnique);

    /**
     * <desc>
     *      初始化京东获取设备属性对象
     * </desc>
     *
     * @param deviceId
     * @param deviceType
     * @return
     * @author Jiaqi.X
     * @createDate 2020/08/11
     */
    SDKJDAttriButeVO initAtrributeVO(String deviceId,Integer deviceType);

    /**
     * <desc>
     *      京东设备id
     * </desc>
     *
     * @param deviceId
     * @return
     * @author jiaqi.X
     * @createDate 2020/08/17
     */
    String getHwDeviceId(String deviceId,Integer deviceType);

    /**
     * <desc>
     * 京东设备id
     * </desc>
     *
     * @param deviceUnique 设备编号
     * @param deviceType   设备类型
     * @return
     * @author caoshuai
     * @createDate 2020/09/07
     */
    Map<String,Object> getDeviceInfo(String deviceUnique, Integer deviceType);

    /**
     * <desc>
     * 京东设备id
     * </desc>
     *
     * @param jdDeviceId JD设备编号
     * @param deviceType 设备类型
     * @return
     * @author caoshuai
     * @createDate 2020/09/07
     */
    Map<String,Object> getDeviceInfoByJDDeviceId(String jdDeviceId, Integer deviceType);
}
